/**
 * 
 */
package ns.om.services

import java.util.List;
import org.hibernate.criterion.CriteriaSpecification;

import ns.gflex.domain.*;
import ns.gflex.domain.association.*;
import ns.gflex.services.DictionaryService;
import ns.om.domain.req.*;
import ns.om.domain.dict.*;

/**
 * @author neo
 *
 */
class OmDictionaryService extends DictionaryService {
	Boolean isProjectManager(){
		return list([eq:[['user', sessionUser]],role:['in':[
					[
						'roleCode',
						[
							'Administrators',
							'ProjectManager'
						]]
				]]],UserRole)
	}

	List getComplexityList(){
		Complexity.list()
	}
	List getEffortUnitList(){
		EffortUnit.list()
	}
	List getPriorityList(){
		Priority.list()
	}
	List getReqStatusList(){
		ReqStatus.list()
	}
	List getProductList(){
		Product.list()
	}
	List getProjectList(){
		Project.list()
	}
}
